function move(element, data, callback = function () { }) {
    let num = 0;
    for (let item in data) {
        num++;

        let startWidth = item === 'opacity' ? window.getComputedStyle(element)[item] * 100 : parseInt(window.getComputedStyle(element)[item]);

        let endWidth = item === 'opacity' ? data[item] * 100 : data[item];

        let count = setInterval(function(){
            let step = (endWidth - startWidth) / 10;

            step = step > 0 ? Math.ceil(step) : Math.floor(step);
            
            startWidth += step;

            element.style[item] = item === 'opacity' ? startWidth / 100 : startWidth + 'px';

            if (endWidth === startWidth) {
                num--;
                clearInterval(count);
                if (num === 0) {
                    callback();
                }
            }
        }, 25);
    }
}